package com.github.bobjoy.java.jiekou;

import java.util.HashMap;
import java.util.Map;

public class InterfaceImpl implements Interface1, Interface2 {

    @Override
    public void print() {
        System.out.println("print");
    }

    @SuppressWarnings("unchecked")
    public static void main(String[] args) {

        Interface2 ii = new InterfaceImpl();

        Map map = new HashMap();
        map.put(ii, null);
        System.out.println(map);
    }

}
